package com.example.demo.controller;

import com.example.demo.dbo.User;
import com.example.demo.entity.TestEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/json")
public class TestSerialize {

    @RequestMapping("/convert")
    public TestEntity test(@RequestBody TestEntity user){
        System.out.println("進入方法test:"+user.toString());
        return user;
    }
}
